package com.leps.nq.op.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.leps.nq.op.entity.OpAlarm;
import com.leps.nq.op.vo.AlarmQueryModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 报警日志表 Mapper 接口
 * </p>
 *
 * @author hex
 * @since 2022-05-22
 */
@Mapper
public interface OpAlarmMapper extends BaseMapper<OpAlarm> {

    Page<OpAlarm> selectByQueryModel(@Param("page") Page<OpAlarm> page, @Param("queryModel") AlarmQueryModel queryModel);

    int updateProperty(@Param("fieldName") String fieldName, @Param("value") Object value, @Param("whereFieldName") String whereFieldName, @Param("whereValue") Object whereValue);
}
